package org.wdcode.shop.listener;

import javax.servlet.ServletContextEvent;

import org.wdcode.back.listener.WdBackInitListener;
import org.wdcode.shop.config.WdShopParams;
import org.wdcode.shop.constants.ShopConstants;

/**
 * 商城初始化监听器
 * @author WD
 * @since JDK6
 * @version 1.0 2010-01-02
 */
public class WdShopInitListener extends WdBackInitListener {
	/**
	 * 初始化资源
	 */
	@Override
	public void contextInitialized(ServletContextEvent event) {
		// 执行父方法
		super.contextInitialized(event);
		// 获得后台主题
		event.getServletContext().setAttribute(ShopConstants.THEME_SHOP, WdShopParams.getThemeShop());
	}
}
